<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,shrink-to-fit=no,user-scalable=no">
    <title>地铁</title>
    <style type="text/css">.near_circle{fill:#00f;fill-opacity:.5}</style>
</head>
<body>
<div id="mysubway"></div>
<script type="text/javascript">
        window._AMapSecurityConfig = {
            serviceHost:'https://bmaps.cn/_AMapService',
        }
</script>
<script type="text/javascript" src="https://webapi.amap.com/maps?v=1.4.15&key=717f025e8de92141e1c9697f25e8f1d5"></script>
<script type="text/javascript">
    function getQueryString(e){var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),n=window.location.search.substr(1).match(t);return null!=n?unescape(n[2]):null}window.cbk=function(){var e=subway("mysubway",{easy:1,theme:"colorful",adcode:getQueryString("city")});e.event.on("subway.routeComplete",function(e,t){if(1==t.status){for(var n=new Array,a=0;a<t.data.buslist[0].segmentlist.length;a++)n[a]=t.data.buslist[0].segmentlist[a].busname;subwayRoute.showDialog(t.data.buslist[0].expense,t.data.buslist[0].expensetime,n)}}),e.event.on("subway.complete",function(){var t=e.getNearStation({lnglat:getQueryString("lnglat")});0!=t&&(e.addCustomNode(t,{type:"circle",r:15,customClass:"near_circle"}),e.addInfoWindow(t),e.setCenter(e.getStCenter(t)))}),e.event.on("subway.touch",function(){subwayRoute.hideDialog()})};
</script>
</body>
</html>